<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    <title>NewThink - Blog | 思考，再思考，前进，再前进……</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="undefined">
    <meta name="description" content="之所以叫 NewThink，是我们想以更为先进的方式来考虑！">
<meta property="og:type" content="website">
<meta property="og:title" content="NewThink - Blog">
<meta property="og:url" content="http://newthink.cc/index.html">
<meta property="og:site_name" content="NewThink - Blog">
<meta property="og:description" content="之所以叫 NewThink，是我们想以更为先进的方式来考虑！">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="NewThink - Blog">
<meta name="twitter:description" content="之所以叫 NewThink，是我们想以更为先进的方式来考虑！">
    
        <link rel="alternative" href="/atom.xml" title="NewThink - Blog" type="application/atom+xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=1.4.7">
    <script>window.lazyScripts=[]</script>
</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu"  >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">杨红伟</h5>
          <a href="mailto:634206017@qq.com" title="634206017@qq.com" class="mail">634206017@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect active">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/yscoder" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://www.weibo.com/ysweb" target="_blank" >
                <i class="icon icon-lg icon-weibo"></i>
                Weibo
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/custom"  >
                <i class="icon icon-lg icon-link"></i>
                测试
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">NewThink - Blog</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header index-header">

    <div class="container fade-scale">
        <h1 class="title">NewThink - Blog</h1>
        <h5 class="subtitle">
            
                思考，再思考，前进，再前进……
            
        </h5>
    </div>

    

</header>

<div class="container body-wrap">

    <ul class="post-list">
    
        <li class="post-list-item fade">
            <article id="post-白羽 批量系列4——批量总结"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月23日 11:50" datetime="2017-02-23T03:50:15.312Z"  itemprop="datePublished">2017-02-23</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/23/白羽 批量系列4——批量总结/">白羽 批量系列4——批量总结</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        白羽 批量系列4——批量总结一：图示说明情况
                
                    
                    
                
                mark
            
##　二：注意

只需要 “二、三、四”步骤的代码即可！超级超级简单！！

特别需要注意的知识点：
1、批量排序传入的是一维数组...
    

        <a href="/2017/02/23/白羽 批量系列4——批量总结/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-白羽 批量系列3——批量上架、下架、审核"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月23日 11:49" datetime="2017-02-23T03:49:46.358Z"  itemprop="datePublished">2017-02-23</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/23/白羽 批量系列3——批量上架、下架、审核/">白羽 批量系列3——批量上架、下架、审核</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        白羽 批量系列3——批量上架、下架、审核
只需要 “二、三、四”步骤的代码即可！超级超级简单！！

一：相关图片
                
                    
                    
                
                mark
            
二：HTML代码1、按钮12345&lt;button cl...
    

        <a href="/2017/02/23/白羽 批量系列3——批量上架、下架、审核/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-白羽 批量系列2——批量删除"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月23日 11:49" datetime="2017-02-23T03:49:11.050Z"  itemprop="datePublished">2017-02-23</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/23/白羽 批量系列2——批量删除/">白羽 批量系列2——批量删除</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        白羽 批量系列2——批量删除
只需要 “二、三、四”步骤的代码即可！超级超级简单！！

一：相关图片
                
                    
                    
                
                mark
            
二：HTML代码1、按钮1&lt;button class=&quot;...
    

        <a href="/2017/02/23/白羽 批量系列2——批量删除/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-白羽 批量系列1——批量排序"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月23日 10:58" datetime="2017-02-23T02:58:22.674Z"  itemprop="datePublished">2017-02-23</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/23/白羽 批量系列1——批量排序/">白羽 批量系列1——批量排序</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        白羽 批量系列1——批量排序
只需要 “二、三、四”步骤的代码即可！超级超级简单！！

一：相关图片
                
                    
                    
                
                mark
            
二：HTML代码1、按钮1&lt;button class=&quot;...
    

        <a href="/2017/02/23/白羽 批量系列1——批量排序/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-列表页及上拉加载、下拉刷新"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月13日 19:00" datetime="2017-02-13T11:00:53.239Z"  itemprop="datePublished">2017-02-13</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/13/列表页及上拉加载、下拉刷新/">列表页及上拉加载、下拉刷新</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        一：图示
                
                    
                    
                
                
            
二：HTML 代码123&lt;div class=&quot;boss&quot;&gt;	&lt;!--列表内容--&gt;&lt;/div&gt;
三：依赖JS123...
    

        <a href="/2017/02/13/列表页及上拉加载、下拉刷新/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-php5.3以后的foreach的&amp;符号不建议使用"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月10日 17:50" datetime="2017-02-10T09:50:47.965Z"  itemprop="datePublished">2017-02-10</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/10/php5.3以后的foreach的&符号不建议使用/">php5.3以后的foreach的&amp;符号不建议使用</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        1、原因有时候会出现奇怪的问题， 有时候上边的foreach没问题，下边的却出现了问题！究其原因一句话解释：

在 foreach($arr as &amp;$value) 数组遍历到最后，引用关系并没有断开

什么原因呢？白羽的一篇文章详细解释了这一切，文章地址:http://note.youdao.com/share/?id=246baa8f946c354d9ddee002dd0e3df...
    

        <a href="/2017/02/10/php5.3以后的foreach的&符号不建议使用/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-foreach中的&amp;符号baiyu"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月10日 17:45" datetime="2017-02-10T09:45:46.824Z"  itemprop="datePublished">2017-02-10</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/10/foreach中的&符号baiyu/">php foreach 使用&amp;(与运算符)引用赋值要注意的问题</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        php foreach 使用&amp;(与运算符)引用赋值要注意的问题foreach 通过在 $value 之前加上 &amp; 很容易就能修改数组的单元，如： 
1234&lt;?phpforeach ($arr as &amp;$value) &#123;     $value .= &apos;4&apos;; &#125;
但这个用法也很容易造成错误，而且也不容易找。
看例子更直截了...
    

        <a href="/2017/02/10/foreach中的&符号baiyu/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-20170207"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月07日 14:43" datetime="2017-02-07T06:43:29.267Z"  itemprop="datePublished">2017-02-07</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/07/20170207/">很好</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Qu...
    

        <a href="/2017/02/07/20170207/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-test"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月07日 14:13" datetime="2017-02-07T06:13:34.707Z"  itemprop="datePublished">2017-02-07</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/07/test/">Hello World</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        1.拍卖活动可以后台管理修改，方便操作时间，数据库改时间戳太麻烦。2.拍卖活动列表问题- 活动列表的数据实时返回活动剩余时间,要时间戳或者是秒数即可
- 输入周日&quot;sunday&quot; 查不出数据，但后台有数据。
- 输入&quot;today&quot; 要返回当前日期的(英文单词和索引号)，如今天是周二则返回 &apos;tuesday&apos;和 1; 
3.出价用户详...
    

        <a href="/2017/02/07/test/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
        <li class="post-list-item fade">
            <article id="post-hello-world"
  class="article-card article-type-post" itemprop="blogPost">

    <div class="post-meta">
        <time class="post-time" title="2017年02月07日 8:52" datetime="2017-02-07T00:52:58.515Z"  itemprop="datePublished">2017-02-07</time>

        


        

    </div>

    


  
    <h3 class="post-title" itemprop="name">
      <a class="post-title-link" href="/2017/02/07/hello-world/">Hello World</a>
    </h3>
  




    <div class="post-content" id="post-content" itemprop="postContent">

    
        Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Qu...
    

        <a href="/2017/02/07/hello-world/" class="post-more waves-effect waves-button">
            阅读全文...
        </a>
    </div>
    
</article>

        </li>
    
    </ul>

    

</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            <span>博客内容遵循 <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">知识共享 署名 - 非商业性 - 相同方式共享 4.0协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p>
            <span>Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a></span>
            <span>NewThink - Blog &copy; 2015 - 2017</span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://newthink.cc/&title=NewThink - Blog&pic=http://newthink.cc/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://newthink.cc/&title=NewThink - Blog&source=之所以叫 NewThink，是我们想以更为先进的方式来考虑！" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://newthink.cc/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=NewThink - Blog&url=http://newthink.cc/&via=http://newthink.cc" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://newthink.cc/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: false };



</script>

<script src="/js/main.min.js?v=1.4.7"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=1.4.7" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>


</body>
</html>
